<?php
require_once( "../Model/db_Order.cls.php");
//require_once("../Model/db_OrderDetail.cls.php");
/*
*
*/
class Order
{
	private $clsOrder;
	public function __construct()
	{
		$this->clsOrder = new db_order();
	}
	//
	
	public function selectAll($id = '')
	{
		if(!empty($id))
			return false;
 		return $this->clsOrder->selectAll();
	}
	//
	
	public function deleteOrder($id = '')
	{
		if(empty($id))
			return;
		return $this->clsOrder->delete($id);
	}
	public function deleteAll()
	{
		return $this->clsOrder->deleteAll();
	}
	//
	
	public function insertOrder($param = array())
	{
		if(empty($param))
			return false;
		foreach ($param as $key => $value)
		{
			$param[$key] = !empty($param[$key])?$param[$key]:"";
		}
		return $this->clsOrder->insert($param);
	}
	//Xu ly lay thong tin OrderDetail tai day luon
	}
?>